package net.xdclass.service;

import net.xdclass.enums.SendCodeEnum;
import net.xdclass.util.JsonData;

/**
 * @Classname NotifyService
 * @Description TODO
 * @Date 2022/4/7 14:14
 * @Created by sunhao
 */
public interface NotifyService {
  /**
   * 发送验证码
   * @param sendCodeEnum
   * @param to
   * @return
   */
  JsonData sendCode(SendCodeEnum sendCodeEnum,String to);


  /**
   * 验证验证码
   */
  boolean checkCode(SendCodeEnum sendCodeEnum,String to,String code);
}
